package com.qidian.mq.pojo;

/**
 * @author 张双虎
 * 这个实体类必须在生产者和消费中都有
 * 这个类必须实现序列化接口，并且要写好serialVersionUID
 */
public class User implements java.io.Serializable {
    public  static final long serialVersionUID = 1L;
    private int id;
    private String name;

    public User(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}